﻿using HCQ2_Model.BaneUser.APP.Params;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.DocModel.APIModel
{
    /// <summary>
    ///  更改机器绑定模型
    /// </summary>
    public class ModifyEmpowerModel: BaseBaneModel
    {
        /// <summary>
        ///  主键
        /// </summary>
        public int id { get; set; }
        /// <summary>
        ///  新机器码
        /// </summary>
        [Required]
        public string machine_code { get; set; }
        /// <summary>
        ///  机器名称
        /// </summary>
        public string machine_name { get; set; }
        /// <summary>
        ///  备注
        /// </summary>
        public string doc_note { get; set; }
    }

    public class AddEmpowerModel : BaseBaneModel
    {
        /// <summary>
        ///  主键
        /// </summary>
        [Required]
        public int id { get; set; }
        /// <summary>
        ///  机器码
        /// </summary>
        [Required]
        public string machine_code { get; set; }
        /// <summary>
        ///  机器名称
        /// </summary>
        public string machine_name { get; set; }
        /// <summary>
        ///  备注
        /// </summary>
        public string doc_note { get; set; }
    }

    public class RelieveEmpowerModel: BaseBaneModel
    {
        /// <summary>
        ///  机器码
        /// </summary>
        [Required]
        public string machine_code { get; set; }
    }

    public class DeleteEmpowerModel : BaseBaneModel
    {
        /// <summary>
        ///  授权主键
        /// </summary>
        [Required]
        public int id { get; set; }
    }
}
